package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.model.User;
import com.itheima.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource(name = "userDao")
    private UserDao userDao;

    public List<User> find_all() {
        return userDao.find_all();
    }
}
